package com.cskaoyan.bean.sysmanage;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class SystemPermissionsVO {

    private List<SystemPermissionsDTO> systemPermissions;
    private List<String> assignedPermissions;

    @NoArgsConstructor
    @Data
    public static class SystemPermissionsDTO {
        private String id;
        private String label;
        private List<ChildrenInfo> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenInfo {
            private String id;
            private String label;
            private List<GrandSonInfo> children;

            @NoArgsConstructor
            @Data
            public static class GrandSonInfo {
                private String id;
                private String label;
                private String api;
            }
        }
    }
}
